package com.ruoyi.project.datamanagement.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.framework.aspectj.lang.annotation.Excels;
import com.ruoyi.project.system.domain.SysDept;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * 查询树对象 sys_search_tree
 *
 * @author anan
 * @date 2021-03-31
 */
@Data
@TableName(value = "sys_search_tree")
public class SysSearchTree extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 查询树ID */
    @Excel(name = "查询树ID")
    @TableId
    private Long searchTreeId;

    /** 父级树ID */
    @Excel(name = "父级树ID")
    private Long parentId;

    /** 名称 */
    @Excel(name = "名称")
    private String searchTreeName;

    /** 可用 */
    @Excel(name = "排序")
    private String orderNum;

    /** 祖级列表 */
    private String ancestors;

    /** 可用 */
    @Excel(name = "可用")
    private String isactive;

    /** 备注 */
    @Excel(name = "备注")
    private String description;

    /** 子查询树 */
    @TableField(exist = false)
    private List<SysSearchTree> children = new ArrayList<SysSearchTree>();

}
